/* $Id: army.h jjs $ */
/*
   Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl>
   Part of the Moros Project http://moros.sourceforge.net/

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License.
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY.

   See the COPYING file for more details.
*/
#ifndef ARMY_HPP_
#define ARMY_HPP_

/// Current orders of a unit

enum unit_status {
	Unit_idle,
	Unit_roadbuilding,
	Unit_transporting,
	Unit_patrol
};

/// Data on a unit

struct client_unit {
	unittype type;
	int amount;
	int requested;
	int status;
};

/// Information on the different unit types

struct client_unit_type {
	string picture;
	string name;
	string description;
};

// MOVEMENT:
// - wait: time
// - move: direction, time

/// Grouping of units into armies... can be an army of builders

class client_army {
  public:
	map<unittype, unit>;
	location position;
	string movement;
	unittype prime_unit;
};

/// Current list of armies

list<army> armies;

#endif /*ARMY_HPP_*/
